// i.d(t, { oR: () => s, $4: () => o })

import RoomMesh from "../mesh/RoomMesh"
export const isRoomMesh = (e: THREE.Object3D) => !!e && e instanceof RoomMesh
export const hasFloorId = e => "object" == typeof e && !!e && "floorId" in e
export const roomFunc = {
  hasFloorId,
  hasRoomId: e => hasFloorId(e) && "roomId" in e,
  isRoomMesh,
  matchesFloorId: (floorId: string) => t => hasFloorId(t) && t.floorId === floorId,
  isVisibleRoomMesh: e => isRoomMesh(e) && e.raycastEnabled && e.visible
}
